.class public Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/ListView;

.field private d:Ljava/util/List;

.field private e:Lcom/waiqin365/lightapp/product/a/bk;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method private a()V
    .locals 3

    const/16 v2, 0x8

    const v0, 0x7f0c0944

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->a:Landroid/widget/TextView;

    const v1, 0x7f0801de

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c094b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c0949

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c0133

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->c:Landroid/widget/ListView;

    const v0, 0x7f0c08ab

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->b:Landroid/widget/TextView;

    return-void
.end method

.method private b()V
    .locals 1

    const v0, 0x7f0c0942

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private c()V
    .locals 3

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "selectedList"

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->e:Lcom/waiqin365/lightapp/product/a/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/a/bk;->m()Ljava/util/List;

    move-result-object v0

    check-cast v0, Ljava/io/Serializable;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const/4 v0, -0x1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->finish()V

    return-void
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 2

    const/16 v0, 0x3ea

    if-ne p1, v0, :cond_0

    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    if-eqz p3, :cond_0

    const-string/jumbo v0, "selectedList"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->e:Lcom/waiqin365/lightapp/product/a/bk;

    const-string/jumbo v0, "selectedList"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/product/a/bk;->a(Ljava/util/List;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->e:Lcom/waiqin365/lightapp/product/a/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/a/bk;->notifyDataSetChanged()V

    :cond_0
    return-void
.end method

.method public onBackPressed()V
    .locals 0

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onBackPressed()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->finish()V

    goto :goto_0

    :sswitch_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->c()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c08ab -> :sswitch_1
        0x7f0c0942 -> :sswitch_0
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030194

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "selectedList"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "selectedList"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->d:Ljava/util/List;

    :goto_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->b()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->b:Landroid/widget/TextView;

    const v1, 0x7f080716

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "productId"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/f;->l(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/product/a/bk;

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->mContext:Landroid/content/Context;

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    invoke-direct {v1, v2, v3}, Lcom/waiqin365/lightapp/product/a/bk;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v1, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->e:Lcom/waiqin365/lightapp/product/a/bk;

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->e:Lcom/waiqin365/lightapp/product/a/bk;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/product/a/bk;->b(Ljava/util/List;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->e:Lcom/waiqin365/lightapp/product/a/bk;

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->d:Ljava/util/List;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/a/bk;->a(Ljava/util/List;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->e:Lcom/waiqin365/lightapp/product/a/bk;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    return-void

    :cond_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/CuXiaoZuListActivity;->d:Ljava/util/List;

    goto :goto_0
.end method
